﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpDiary.Core.PlugIn
{
    /// <summary>
    /// 插件属性。
    /// </summary>
    public class PlugInAttribute : Attribute
    {
        #region Fields & Properties

        private string _id = string.Empty;

        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        #endregion

        #region Constructors

        public PlugInAttribute(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                throw new ApplicationException("PlugIn id is needed.");
            }

            _id = id;
        }

        #endregion
    }
}
